<template>
  <div
    class="border-box relative hover-border-active full-width"
    :class="haveBoder ? 'have-border' : ''"
  >
    <span class="absolute"></span>
    <span class="absolute"></span>
    <span class="absolute"></span>
    <span class="absolute"></span>
    <slot />
  </div>
</template>
<script>
export default {
  name: "BorderBOX",
  props: {
    haveBoder: {
      type: Boolean,
      default: true,
    },
  },
};
</script>

<style lang="scss" scoped>
@import "@/styles/variables.scss";
.have-border {
  border: 1px solid $--color-borderSt;
}
.border-box {
  color: $--color-info-lighter;
  font-size: $--font-size-extra-small;

  padding: 6px;
  span:nth-child(1) {
    position: absolute;
    left: -3px;
    top: -3px;
    padding: 13px;
    border-style: solid;
    border-color: $--color-active;
    border-width: 3px 0 0 3px;
  }
  span:nth-child(2) {
    position: absolute;
    right: -3px;
    top: -3px;
    padding: 13px;
    border-style: solid;
    border-color: $--color-active;
    border-width: 3px 3px 0 0;
  }
  span:nth-child(3) {
    position: absolute;
    right: -3px;
    bottom: -3px;
    padding: 13px;
    border-style: solid;
    border-color: $--color-active;
    border-width: 0 3px 3px 0;
  }
  span:nth-child(4) {
    left: -3px;
    bottom: -3px;
    padding: 13px;
    border-style: solid;
    border-color: $--color-active;
    border-width: 0 0 3px 3px;
  }
}
</style>
